package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName channel_subscribe
 */
@TableName(value ="channel_subscribe")
@Data
@NoArgsConstructor
@ApiModel("频道订阅实体类")
public class ChannelSubscribe implements Serializable {

    public ChannelSubscribe(Long userId, Long channelId) {
        this.userId = userId;
        this.channelId = channelId;
    }

    /**
     * 订阅频道id
     */
    @TableId
    @ApiModelProperty("订阅频道id")
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 频道id
     */
    @ApiModelProperty("频道id")
    private Long channelId;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    @ApiModelProperty("需要转变的状态")
    private Boolean status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}